package com.sskj.fca.bean;

import com.sskj.fca.R;

import sskj.lee.appupdatelibrary.BaseVersion;

/**
 * Created by Q-Kang on 2019/1/14.
 */

public class UpdataBean extends BaseVersion {

    /**
     * addr : https://www.xjqgsp.com/uploads/app/android/20181019/3e6e8c79e825d8f94fd8029f6e4a4629.apk
     * version : 1.0.2
     * title : 升级提示
     * content : 优化界面
     * uptime : 1539941680
     * uptype : 2
     */

    private String addr;
    private String version;
    private String title;
    private String content;
    private String uptime;
    private String uptype;

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getVersion() {
        return version == null ? "" : version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getTitle() {
        return title == null ? "" : title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content == null ? "" : content;
    }

    @Override
    public String getUrl() {
        return addr;
    }

    @Override
    public String getVersionName() {
        return version;
    }

    @Override
    public int getNotifyIcon() {
        return R.mipmap.app_logo;
    }

    @Override
    public boolean isMustUp() {
        return getUptype().equals("1");
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUptime() {
        return uptime == null ? "" : uptime;
    }

    public void setUptime(String uptime) {
        this.uptime = uptime;
    }

    public String getUptype() {
        return uptype == null ? "" : uptype;
    }

    public void setUptype(String uptype) {
        this.uptype = uptype;
    }
}
